export default {
  install: (app) => {
    Object.entries(import.meta.glob('./**/index.(vue|jsx)', { eager: true })).forEach(([k, v]) => {
      const key = k.slice(2, -10)
      app.component(key, v.default)
    })
    // components.forEach((component) => {
    //   console.log('name', component.name)
    //   app.component(component.name, component);
    // });
  },
}
